package com.fhz.core_lib.hilt_mvvm;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.gyf.barlibrary.ImmersionBar;

/**
 * 时间:11/14/21
 *
 * @author msfeng
 * 简述: 基础的Activity
 */
public abstract class BaseActivity extends AppCompatActivity {

    protected abstract void initVMandDataBind();
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initVMandDataBind();
        initView();
        initData();
    }
    protected abstract void initView();
    protected abstract void initData();

    @Override
    protected void onDestroy() {
        super.onDestroy();
        ImmersionBar.with(this).destroy();
    }
}
